package com.afc.qua;

import java.util.Date;

/**
 * Joke interface.
 */
public interface Joke
{
  /**
   * @return the id
   */
  int getId();
  /**
   * @param aId
   *          the id to set
   */
  void setId(int aId);

  /**
   * @return author
   */
  String getAuthor();
  /**
   * @param anAuthor
   *          the author to set
   */
  void setAuthor(String anAuthor);

  /**
   * @return title
   */
  String getTitle();
  /**
   * @param aTitle
   *          the title to set
   */
  void setTitle(String aTitle);

  /**
   * @return content
   */
  String getContent();
  /**
   * @param aContent
   *          the content to set
   */
  void setContent(String aContent);

  /**
   * @return creationDate
   */
  Date getCreationDate();
  /**
   * @param aCreationDate
   *          the creationDate to set
   */
  void setCreationDate(Date aCreationDate);

  /**
   * Joke class.
   */
  public class DefaultJoke implements Joke
  {
    @Override
    public int getId()
    {
      return id;
    }

    @Override
    public void setId(int aId)
    {
      id = aId;
    }

    @Override
    public String getAuthor()
    {
      return author;
    }

    @Override
    public void setAuthor(String anAuthor)
    {
      author = anAuthor;
    }

    @Override
    public String getTitle()
    {
      return title;
    }

    @Override
    public void setTitle(String aTitle)
    {
      title = aTitle;
    }

    @Override
    public String getContent()
    {
      return content;
    }

    @Override
    public void setContent(String aContent)
    {
      content = aContent;
    }

    @Override
    public Date getCreationDate()
    {
      return creationDate;
    }

    @Override
    public void setCreationDate(Date aCreationDate)
    {
      creationDate = aCreationDate;
    }

    /**
     * @param aCreationDate
     *          the creationDate to set
     */
    private int id;
    /**
     * @param aCreationDate
     *          the creationDate to set
     */
    private String author;
    /**
     * @param aCreationDate
     *          the creationDate to set
     */
    private String title;
    /**
     * @param aCreationDate
     *          the creationDate to set
     */
    private String content;
    /**
     * @param aCreationDate
     *          the creationDate to set
     */
    private Date creationDate;
  }
}
